home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 November: Tool Chest / Dev.CD Nov 94.toast / Tool Chest / !Interfaces / Universal Interfaces 2.0a1 / CIncludes / Folders.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-07-17  |  2.4 KB  |  85 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        Folders.h
  3.  
  4.      Copyright:    © 1984-1994 by Apple Computer, Inc.
  5.                  All rights reserved.
  6.  
  7.      Version:    Universal Interfaces 2.0a1.  ETO #15, MPW prerelease.  Sunday, July 17, 1994. 
  8.  
  9.      Bugs?:        If you find a problem with this file, send the file and version
  10.                  information (from above) and the problem description to:
  11.  
  12.                      Internet:    apple.bugs@applelink.apple.com
  13.                      AppleLink:    APPLE.BUGS
  14.  
  15. */
  16.  
  17. #ifndef __FOLDERS__
  18. #define __FOLDERS__
  19.  
  20.  
  21. #ifndef __TYPES__
  22. #include <Types.h>
  23. #endif
  24. /*    #include <ConditionalMacros.h>                                */
  25.  
  26. #ifndef __FILES__
  27. #include <Files.h>
  28. #endif
  29. /*    #include <MixedMode.h>                                        */
  30. /*    #include <OSUtils.h>                                        */
  31.  
  32. #ifdef __cplusplus
  33. extern "C" {
  34. #endif
  35.  
  36. #if GENERATINGPOWERPC
  37. #pragma options align=mac68k
  38. #endif
  39.  
  40. #ifdef __CFM68K__
  41. #pragma lib_export on
  42. #endif
  43.  
  44.  
  45. enum {
  46.     kOnSystemDisk                = 0x8000,
  47.     kCreateFolder                = true,
  48.     kDontCreateFolder            = false,
  49.     kSystemFolderType            = 'macs',                        /* the system folder */
  50.     kDesktopFolderType            = 'desk',                        /* the desktop folder; objects in this folder show on the desk top. */
  51.     kTrashFolderType            = 'trsh',                        /* the trash folder; objects in this folder show up in the trash */
  52.     kWhereToEmptyTrashFolderType = 'empt',                        /* the "empty trash" folder; Finder starts empty from here down */
  53.     kPrintMonitorDocsFolderType    = 'prnt',                        /* Print Monitor documents */
  54.     kStartupFolderType            = 'strt',                        /* Finder objects (applications, documents, DAs, aliases, to...) to open at startup go here */
  55.     kAppleMenuFolderType        = 'amnu',                        /* Finder objects to put into the Apple menu go here */
  56.     kControlPanelFolderType        = 'ctrl',                        /* Control Panels go here (may contain INITs) */
  57.     kExtensionFolderType        = 'extn',                        /* Finder extensions go here */
  58.     kFontsFolderType            = 'font',                        /* Fonts go here */
  59.     kPreferencesFolderType        = 'pref',                        /* preferences for applications go here */
  60.     kTemporaryFolderType        = 'temp'
  61. };
  62.  
  63. #if SystemSevenOrLater
  64. extern pascal OSErr FindFolder(short vRefNum, OSType folderType, Boolean createFolder, short *foundVRefNum, long *foundDirID)
  65.  TWOWORDINLINE(0x7000, 0xA823);
  66. #else
  67. extern pascal OSErr FindFolder(short vRefNum, OSType folderType, Boolean createFolder, short *foundVRefNum, long *foundDirID);
  68. #endif
  69. extern pascal OSErr ReleaseFolder(short vRefNum, OSType folderType)
  70.  TWOWORDINLINE(0x700B, 0xA823);
  71.  
  72. #ifdef __CFM68K__
  73. #pragma lib_export off
  74. #endif
  75.  
  76. #if GENERATINGPOWERPC
  77. #pragma options align=reset
  78. #endif
  79.  
  80. #ifdef __cplusplus
  81. }
  82. #endif
  83.  
  84. #endif /* __FOLDERS__ */
  85.